package com.lemon.cloud.mp.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 微信公众号粉丝表
 */
@Data
@TableName(value = "wx_account_fans")
public class WxAccountFans  implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "openid")
    private String openid;

    @TableField(value = "subscribe_status")
    private String subscribeStatus;

    /**
     * 订阅时间
     */
    @TableField(value = "subscribe_time")
    private LocalDateTime subscribeTime;

    @TableField(value = "nickname")
    private String nickname;

    @TableField(value = "gender")
    private String gender;

    @TableField(value = "language")
    private String language;

    @TableField(value = "country")
    private String country;

    @TableField(value = "province")
    private String province;

    @TableField(value = "city")
    private String city;

    @TableField(value = "headimg_url")
    private String headimgUrl;

    @TableField(value = "remark")
    private String remark;

    @TableField(value = "union_id")
    private String unionId;

    @TableField(value = "is_snapshotuser")
    private Integer snapshotUser;

    @TableField(value = "privileges")
    private String privileges;
    /**
     * 微信公众号ID
     */
    @TableField(value = "wx_account_id")
    private Integer wxAccountId;

    @TableField(value = "wx_account_name")
    private String wxAccountName;

    @TableField(value = "wx_account_appid")
    private String wxAccountAppid;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableLogic
    private String delFlag;

    @TableField(value = "tenant_id")
    private Integer tenantId;

    public static final String COL_ID = "id";

    public static final String COL_OPENID = "openid";

    public static final String COL_SUBSCRIBE_STATUS = "subscribe_status";

    public static final String COL_SUBSCRIBE_TIME = "subscribe_time";

    public static final String COL_NICKNAME = "nickname";

    public static final String COL_GENDER = "gender";

    public static final String COL_LANGUAGE = "language";

    public static final String COL_COUNTRY = "country";

    public static final String COL_PROVINCE = "province";

    public static final String COL_CITY = "city";

    public static final String COL_HEADIMG_URL = "headimg_url";

    public static final String COL_REMARK = "remark";

    public static final String COL_WX_ACCOUNT_ID = "wx_account_id";

    public static final String COL_WX_ACCOUNT_NAME = "wx_account_name";

    public static final String COL_WX_ACCOUNT_APPID = "wx_account_appid";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_DEL_FLAG = "del_flag";

    public static final String COL_TENANT_ID = "tenant_id";
}
